package com.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Clue {

    //待跟进
    public static final int CLUE_STATUS_WAITING=1;
    //跟进中
    public static final int CLUE_STATUS_FOLLOWING=2;
    //打酱油
    public static final int CLUE_LEVEL_DEAD=3;
    //了解
    public static final int CLUE_LEVEL_WATCHING=2;
    //近期学
    public static final int CLUE_LEVEL_STRONG=0;
    //考虑中
    public static final int CLUE_LEVEL_CONSIDERING=1;

    private Long id;
    private String name;
    private String phone;
    //渠道来源 0:线上活动 1:推广介绍
    private Integer channel;
    //活动id
    private Integer activityId;
    //性别 0:男 1:女
    private Integer sex;
    //意向等级 0:近期学习 1:打算学,考虑中 2:进行了解 3:打酱油
    private Integer level;
    private Integer age;
    private String weixin;
    private String qq;
    //线索状态 0:待分配 1:待跟进 2:跟进中
    private Integer status;
    private Long userId;
    //归属者
    private String owner;
    //归属时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime ownerTime;
    //下次跟进时间
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private String nextTime;
    private Integer createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    private Integer updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}
